home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15655 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  973 b 

  1. Path: grimsel.zurich.ibm.com!usenet
  2. From: wgk@zurich.ibm.com (Keith Whittingham)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Newbie: Character values?
  5. Date: 7 Apr 1996 12:34:35 GMT
  6. Organization: IBM Research, ZRH
  7. Message-ID: <4k8cor$oca@grimsel.zurich.ibm.com>
  8. References: <4k7ute$oud@freenet-news.carleton.ca>
  9. Reply-To: wgk@zurich.ibm.com
  10. NNTP-Posting-Host: pine.zurich.ibm.com
  11. X-Newsreader: IBM NewsReader/2 v1.00
  12.  
  13. In <4k7ute$oud@freenet-news.carleton.ca>, am573@FreeNet.Carleton.CA (Jason Olenick) writes:
  14. >
  15. >I am trying to see if the user has typed the Insert or Delete key in a
  16. >program I wrote...but the unsinged char is giving the values of 0 then 82
  17. >for insert (same as R) and delete is 0 then 83 (same as S).  So what I'm
  18. >doing then is seeing if the chars value is 0 if it was then see if the
  19. >next chars value is 82 or 83.  Is there an easier way around this?  Not
  20. >that this is hard, it just doesn't seem right.
  21. >
  22.  
  23. You're doing the right (simplest) thing.
  24.  
  25. Keith
  26.  
  27.  
  28.